use existing variable in messages_controller