added css and improved overall functionality