Added first and last button and base functionality (with some rendering errors).