fixed right arrow bug and refactored js css
fixed conflict