add scale function to post page