implementated back page buttons