Increased readability in paintActioncards() and imporved placing