Refactor style and add anchor cursor style