remove unneeded sql call
proper view use