Using CBV to handle get and post