refactor css and code
add forward/back controls