Added visualManager and moved ActionListener