Add boolean flag
Add indicator arrow to panel heading
Move js to a view