Make the escape key return to previous page from the expanded view

As the title says :+1: 

#16