You need to post the relevant code. We have no idea want happens when you click the view button.
Forum Rules