panel now works, now for the actual code