views modularized

templates added for all the scripts.