writing some controllers