fixing next/prev buttons so they are only bound one time