Move functionality of .box into panels