cleaned up code, moved style and html to index