changed view engine to jade and added method-override middleware