removing form listener
moving functions
adding sinatra ar
small refactoring in spul map