fixed #23 & #24
Fix reverse_url for switch_status in index.html
Various fixes