refactor front end code to look better, no more table layouts