Simplfy drawing selection code in page compose