Separated views and clicks functions