Fixed problem with buttons redirecting to main page