fixed right arrow bug and refactored js css