added default controller
added method checks