pep8 fixes
templates update
templates new fixes
logic for id='selected' and main.html fix
Merge pull request #4 from matlobocki/bug_3072

Bug 3072