solved page redirect on button press problem