move more view related functions