Format sample edit page and support keyboard navigation; Changes to support mac chrome
Move on-load things to the load template event for index