changes for genric view for templet and other code for run localy
changes for the genric view and run on heroku