add layout

add dynamic helper for view, add login and logout