Added functionality for 4 buttons