Added basic page action, implemented icon switching logic