removed next previous from js and added to css