add key method to pages