by node31

made a few changes
fixed a bug which was causing page redirection from the main page

update your database accordingly