organization of views directory and added flash