[nojira] - Removed inline style and repetitive code, and fixed page redirection code