Added home/end buttons actions