added loader and fixed prev click