Added close function to pages
Merge pull request #5 from klavs/master

Added close function to pages