Moved panel to directive