changed css and function routing