init view controller layout and event