Trying to fix page because it is constantly refreshing