Restructuring controllers and fucntions

Signed-off-by: Matt Keys <matt@uptrending.com>