use sinatra and organize code in views