refactored look and feel of main page