Simplify code for user home view