fixed some inline styles and cleaned up some code