added reset functionality to layout